/* 	PLUGIN VOTE-FOR-IT 2
	WRITTEN BY: [WING] Sir Drink a lot
	visit www.adminmod.de
	
	DESCRIPTION: 	At the moment, you can start a vote for several maps, a single map, extending current map, ff, chasecam, 
			forbiding awp, using pistols only and gravity and more... You need access-level 2 for using 
			this plugin. Of course, you can also cancel the votes.
			All votes are using the graphical vote display.
			
	NEW:		-If no admin is on the server and VFI_PUBLIC is set to 1 in vault.ini, nonadmins can start votes, which are 
			defined in publicvotes.ini. For example, They can write 'vote_awp' in chat to start a vote for or against
			using awp, if they are allowed to execute this kind of vote.
			
			-You can set VFI_MAXNOMINATE. If enough map nominations are made, the multimap vote starts automatically.

	COMMANDS:	
	admin_vote_cancel 				:cancels the current voting
	admin_vote_map <votetime>			:starts a single mapvote
	admin_vote_maps	<votetime>			:starts a multivote for the maps, which are stored in mapvote.ini
	admin_vote_mapadd <mapname> <votetime>		:adds the map to mapvote.ini (max. 8 maps)
	admin_vote_mapdel				:deletes entries in mapvote.ini
	admin_vote_maplist <opt. filename>		:display all maps which are stored in 'optional=filename'.ini. Default:"mapvote.ini"
	admin_vote_awp	<votetime>			:starts a vote for or against using awp (depends on what was voted before)
	admin_vote_chasecam <votetime>			:starts a vote for or against using chasecam (depends on what was voted before)
	admin_vote_extend <votetime>			:starts a vote for extendig the map
	admin_vote_ff <votetime>			:starts a vote for or against friendly fire (depends on what was voted before)
	admin_vote_gravity <number> <votetime>		:starts a vote for or against using low gravity (depends on what was voted before)
	admin_vote_pistols <votetime>			:starts a vote for or against using obly pistols (depends on what was voted before)
	admin_vote_mapchange <mapname> <votetime> 	:starts a vote for or against map.
	admin_vote_kickplayer <name> <votetime>		:starts a vote for or against kicking a player.
	admin_vote_slap <name> <votetime>		:starts a vote for or against slapping a player.
	admin_vote_slay <name> <votetime>		:starts a vote for or against slaying a player.
	admin_vote_ban <name> <votetime>		:starts a vote for or against banning a player.
	admin_vote_bury <name> <votetime>		:starts a vote for or against bury a player.
	admin_vote_sounds <0/1>				:turns vote-sounds off/on
	admin_vote_multimap				:players can make map suggestions and after 60 sec. the multivote starts.
	admin_vote_rr <votetime>			:starts a vote for or against restarting the map.

	VAULT.INI:
	VFI_VOTEWARN "sound/ambience/doorbell.wav"
	VFI_VOTENOW "sound/misc/vote_now.wav"
	VFI_VOTEPASSED "sound/misc/vote_passed.wav"
	VFI_VOTEFAILED "sound/misc/vote_failed.wav"
	VFI_SOUNDSALLOWED 1
	VFI_TIMETONOMINATE 60
	VFI_PUBLIC 1
	VFI_MAXNOMINATIONS 0
	VFI_MAPRESTRICTION 1
	
	---Changelog---
	04.03.03:	- Bugfix admin_vote_debug 'nomin'
			- Bugfix Display Vote Selection
			- Bugfix map restriction
			
	02.03.03:	- add VFI_MAXNOMINATE. If enough nominated maps are available, multimap vote starts automatically.
	
	28.02.03:	- all players can make votes if no admin is available and if VFI_PUBLIC is set to 1 in vault.ini
			  They are only allowed to start votes which are defined in 'publicvotes.ini'
			  
	19.02.03:	- added in code: 'status' for votes.
	
	29.01.03:	- added allowsound() function. Use plugin_sdal_allowsounds!!
			- added maxextend
			- added map restriction. Last X played maps are restricted for being nominated again, if you set VFI_MAPRESTRICTION 1.
			- you can read every map*.ini file. command: admin_vote_maplist 'optional filename'. Default: 'mapvote.ini'
	
	04.01.03:	- added admin_vote_debug to look for settings
			- added an extra mapnominate.ini
			- added new helper functions: displayall and displayconsole
	
	22.12.02:	- announcing of the players vote decision. admin_vote_echo not of interest anylonger.
	
	12.12.02:	- deleted changings of 10.12.02: timer for automatic start of multimap deleted.
			- plugin created (plugin_sdal_time_manager), which can start the multimapvote automatically.This plugin contains logd
			
	10.12.02:	- added timer to start admin_vote_multimap automatically
			- votetime-duration of admin_vote_multimap could be set in vault.ini. Standard is 60 sec.
			- bugfix(i hope): now it should be shown the required votes for vote pass.
			- bugfix: admin_vote_sound should work now.
			
	27.11.02:	- changing admin_base
	
	06.11.02:	- admin_vote_rr
			- new helperfunction set_votesettings for prehandling the params
			- fixed Version 03.11.02 :-)
			
	03.11.02:	- bug fix in admin_vote_mapadd: check if map already exists in mapvote.ini
			- new optimized code structure :-) (added more helper-functions)
			- bug fix: In this plugin no votes are allowed after starting multivote. 
			- bug fix: admin_vote_slap should work now
			- Mapchange: If there is also a map which can be extended, it will be displayed in question.
			
	02.11.02: 	- 'exetend' is removed from multivote. If currentmap = Nominated-Map = the map will be automatically extended
	
	01.11.02: 	- multimap function
	
	31.10.02: 	- adding kick, ban, slap and bury and using vault.ini for global plugin settings
	
	30.10.02: 	- new Code structure
	
	25.10.02: 	- sounds and single map vote included
	
	<25.10.02: 	- multimapvote-plugin and some single votes.
*/